package Work.Stream;

public class Book {
    String booknsme;
    int price;

    public Book(String booknsme, int price) {
        this.booknsme = booknsme;
        this.price = price;
    }

    public String getBooknsme() {
        return booknsme;
    }

    public int getPrice() {
        return price;
    }

    public void setBooknsme(String booknsme) {
        this.booknsme = booknsme;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "booknsme='" + booknsme + '\'' +
                ", price=" + price +
                '}';
    }
}
